package com.ruoyi.report_hntjg.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.utils.BigDecimalUtil;
import lombok.Data;

import java.math.BigDecimal;


/**
 * 钢筋位置、保护层厚度试验检测报告-详情视图对象 report_hntjg_gjbhcbg_ba_detail
 *
 * @author tll
 * @date 2024-08-07
 */
@Data
@ExcelIgnoreUnannotated
public class ReportHntjgGjbhcbgBaDetailVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long detailId;

    /**
     * 主表id
     */
    @ExcelProperty(value = "主表id")
    private Long excelId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 构件号
     */
    @ExcelProperty(value = "构件号")
    private String goujh;

    /**
     * 钢筋间距-设计值（mm）
     */
    @ExcelProperty(value = "钢筋间距-设计值", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "m=m")
    private BigDecimal gangjSjz;

    /**
     * 钢筋间距-实测点数
     */
    @ExcelProperty(value = "钢筋间距-实测点数")
    private BigDecimal gangjScds;

    /**
     * 钢筋间距-合格点数
     */
    @ExcelProperty(value = "钢筋间距-合格点数")
    private BigDecimal gangjHgds;

    /**
     * 钢筋间距-合格率（%）
     */
    @ExcelProperty(value = "钢筋间距-合格率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private BigDecimal gangjHgl;

    /**
     * 保护层厚度-设计值（mm）
     */
    @ExcelProperty(value = "保护层厚度-设计值", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "m=m")
    private BigDecimal baohcSjz;

    /**
     * 保护层厚度-实测点数
     */
    @ExcelProperty(value = "保护层厚度-实测点数")
    private BigDecimal baohcScds;

    /**
     * 保护层厚度-合格点数
     */
    @ExcelProperty(value = "保护层厚度-合格点数")
    private BigDecimal baohcHgds;

    /**
     * 保护层厚度-合格率（%）
     */
    @ExcelProperty(value = "保护层厚度-合格率", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "%=")
    private BigDecimal baohcHgl;

    private Integer sort;

    public void setGangjSjz(BigDecimal gangjSjz) {
        this.gangjSjz = BigDecimalUtil.stpTrailZero(gangjSjz);
    }

    public void setGangjScds(BigDecimal gangjScds) {
        this.gangjScds = BigDecimalUtil.stpTrailZero(gangjScds);
    }

    public void setGangjHgds(BigDecimal gangjHgds) {
        this.gangjHgds = BigDecimalUtil.stpTrailZero(gangjHgds);
    }

    public void setGangjHgl(BigDecimal gangjHgl) {
        this.gangjHgl = BigDecimalUtil.stpTrailZero(gangjHgl);
    }

    public void setBaohcSjz(BigDecimal baohcSjz) {
        this.baohcSjz = BigDecimalUtil.stpTrailZero(baohcSjz);
    }

    public void setBaohcScds(BigDecimal baohcScds) {
        this.baohcScds = BigDecimalUtil.stpTrailZero(baohcScds);
    }

    public void setBaohcHgds(BigDecimal baohcHgds) {
        this.baohcHgds = BigDecimalUtil.stpTrailZero(baohcHgds);
    }

    public void setBaohcHgl(BigDecimal baohcHgl) {
        this.baohcHgl = BigDecimalUtil.stpTrailZero(baohcHgl);
    }
}
